package com.java2207.group1.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author HLJ
 * @Date 2022/7/26 07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OldManBo {

    @ExcelProperty(value = "序号")
    private Integer id;

    @ExcelProperty(value = "老人姓名")
    private String name;

    @ExcelProperty(value = "老人性别")
    private String sex;

    @ExcelProperty(value = "老人年龄")
    private String age;

    @ExcelProperty(value = "老人手机号")
    private String tel;

    @ExcelProperty(value = "家庭住址")
    private String address;

    @ExcelProperty(value = "监护人")
    private String guardian;

    @ExcelProperty(value = "与老人关系")
    private String relation;

    @ExcelProperty(value = "监护人联系方式")
    private String guardian_tel;

    @ExcelProperty(value = "入院日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date annihdate;

    @ExcelProperty(value = "出院日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date discharge_date;

    @ExcelProperty(value = "住院状态")
    private String state;

    @ExcelProperty(value = "照片")
    private String pic;
}
